package com.itdct.onflow.system.account.qo

import com.itdct.onflow.core.qo.BaseQo
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import org.hibernate.validator.constraints.Length

/**
 * @author Zhouwx
 * @date 2025/8/21 20:55:40
 * @version 1.0
 * @description
 */
class SysAccountLoginQo : BaseQo() {
    @Schema(title = "账户名或手机号", example = "")
    @NotBlank(message = "请输入账户名或手机号")
    @Length(max = 50, message = "账户名不能超过50个字符")
    var name = ""

    @Schema(title = "密码", example = "")
    @NotBlank(message = "请输入密码")
    @Length(max = 32, message = "密码不能超过32个字符")
    var password = ""

    // TODO: Zhouwx: 2025/8/21 验证码
//    @Schema(title = "验证码", example = "")
//    @NotBlank(message = "请输入验证码")
//    @Length(max = 4, message = "验证码不能超过4个字符")
//    var captcha=""

}